﻿@model IEnumerable<KM.ENT.entNews>
@using KM.HtmlHelpers
@using CORE
@{
    Layout = "~/Areas/REM/Views/Shared/Master.cshtml";
}

<div class="content">
    <!-- content-left-begin -->
    <div class="content_left">
        <!-- menu-cate-begin -->
        <div class="menu_cate">
            <div class="menu_cate_header">
            </div>
            <div class="menu_cate_top">
            </div>
            <div class="menu_cate_center">
                @{Html.RenderAction("Index", "LeftMenu");}
            </div>
            <div class="menu_cate_bottom">
            </div>
        </div>
        <!-- menu-cate-end -->
    </div>
    <!-- content-left-end -->
    <!-- content-right-begin -->
    <div class="content_right">


        <!-- content-all-begin -->
        <div class="content_all">
            <div class="content_all_top">
            </div>

            <div class="content_all_content">
                <div class="page_news">
                    <ul class="news_content">
                        @{
                            foreach (var item in Model)
                            {
                            <li>
                                <a class="ctn_newsimg" href="@Url.Action("ChiTiet", null, new { Id = item.Id, Name = Utils.GetTitle(item.Name) })">
                                    <img src="/images/@item.Image"></a>
                                <h1>
                                    <a class="ctn_newstitle" href="@Url.Action("ChiTiet", null, new { Id = item.Id, Name = Utils.GetTitle(item.Name) })">@item.Name</a>
                                </h1>
                                <div class="news_text">@Html.Raw( @item.Content)</div>
                                <a href="@Url.Action("ChiTiet", null, new { Id = item.Id, Name = Utils.GetTitle(item.Name) })" style="display: block; text-align: right; padding-right: 20px; font-size: 12px; font-weight: normal;" class="btn_readmore">Xem tiếp...</a><!--Nút đọc thêm-->
                            </li>
                            }    
                        
                        }

                    </ul>
                </div>
                @Html.PhanTrang((KM.Models.PagingInfoModel)ViewBag.Page, x => Url.Action("danhsachnew", "news", new { Id = ViewBag.Id, Name=ViewBag.Name, page = x }))
            </div>

            <div class="content_all_bottom">
            </div>

        </div>
        <!-- content-all-end -->


    </div>
    <!-- content-right-end -->
</div>
